package com.techysky.entity;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 适用性
 * @author zhangxu
 *
 */
@Entity
@Table(name="sys_fitness")
public class Fitness extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;	
	@Transient
	private Integer page;
	@Transient
	private Integer size;
	@Column(name="fit_descr")
	private String fitDescr;
	@Column(name="fit_value")
	private String fitValue;
	@Column(name="project_id")
	private String projectId;
	@Column(name="dm_code")
	private String dmCode;
	@Column(name="dm_title")
	private String dmTitle;
	@ManyToOne(fetch = FetchType.LAZY,cascade=CascadeType.ALL)
	@JoinColumn(name="project_id",insertable=false,updatable=false)
	private Project project;
	
	public Project getProject() {
		return project;
	}
	public void setProject(Project project) {
		this.project = project;
	}
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getSize() {
		return size;
	}
	public void setSize(Integer size) {
		this.size = size;
	}
	public String getFitDescr() {
		return fitDescr;
	}
	public void setFitDescr(String fitDescr) {
		this.fitDescr = fitDescr;
	}
	public String getFitValue() {
		return fitValue;
	}
	public void setFitValue(String fitValue) {
		this.fitValue = fitValue;
	}
	public String getProjectId() {
		return projectId;
	}
	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}
	public String getDmCode() {
		return dmCode;
	}
	public void setDmCode(String dmCode) {
		this.dmCode = dmCode;
	}
	public String getDmTitle() {
		return dmTitle;
	}
	public void setDmTitle(String dmTitle) {
		this.dmTitle = dmTitle;
	}
	
}
